importProjectContext

proc writeClass {target c} {
    if {[file extension $c] == ".tcl"} {
        withOpen fh [open $c r] {
            spit $target [read $fh]
        }
    }
}

set target [file join $projectRoot composed.tcl]
spit $target "lappend auto_path ./lib"
foreach d $dependencies {
    spit $target "package require $d"
}

tranverseDir [file join $projectRoot src] [list writeClass $target]